<div class="span10">
    <legend>Daftar materi</legend>
    <table class="table table-bordered">
        <thead>
            <tr>
                <th>Judul</th>
                <th>Mata Kuliah</th>
                <th>Sinopsis</th>
                <th>Tgl</th>
                <th>Link</th>
                <th>Download</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($materi as $data): ?>
                <tr>
                    <td><?php echo $data->judul ?></td>
                    <td><?php echo $data->matkul ?></td>
                    <td><?php echo $data->sinopsis ?></td>
                    <td><?php echo $data->date ?></td>
                    <td><?php echo anchor('materi/download/' . $data->hash, 'Download') ?></td>
                    <td><?php echo $data->download ?></td>
                </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
    <?php echo $this->pagination->create_links(); ?>
</div>